package org.hpin.asset.dao;

import java.util.List;

import org.hpin.common.core.orm.BaseDao;
import org.springframework.stereotype.Repository;
@Repository()
public class UpgradeAssetDao extends BaseDao{
	public List findUpgradeAssetByAttribute(Class clazz,String attribute,String value){
		String queryString="from "+clazz.getSimpleName();
		if(attribute!=""&&attribute!=null){
			queryString+=" where "+attribute+"=\'"+value+"\'";
		}
		System.out.println("queryString:"+queryString);
		return super.getHibernateTemplate().find(queryString);
	}

}
